package com.codeyang.enums;

/**
 * 描述: 业务类型
 *
 * @author CodeYang_Site
 * @version 2021/5/6 0:02
 */
public enum BusinessType {

    INSERT(1, "新增"),
    UPDATE(2, "更新"),
    DELETE(3, "删除"),
    GRANT(4, "授权"),
    EXPORT(5, "导出"),
    IMPORT(6, "导入"),
    EXIT(7, "退出"),
    CLEAR_ALL(8, "清空数据"),
    OTHER(9, "其他"),
    QUERY(10, "查询");

    private int code;

    private String desc;

    BusinessType(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
